//
//  MyCell.m
//  NeteaseNewsLY
//
//  Created by dllo on 16/1/19.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell
- (void)dealloc
{
    [_tubiao release];
    [_myLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.tubiao = [[UIImageView alloc] init];
        [self.contentView addSubview:_tubiao];
        [_tubiao release];
        
        self.myLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_myLabel];
        [_myLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _tubiao.frame = CGRectMake(WIDTH * 25, HEIGHT * 10, WIDTH * 25, HEIGHT * 25);
    
    _myLabel.frame = CGRectMake(WIDTH * 65, HEIGHT * 10, WIDTH * 100, HEIGHT * 25);
    _myLabel.font = [UIFont systemFontOfSize:12];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
